//
//  GetTimerListApi.m
//  SmartWindow
//
//  Created by 喻贵华 on 16/6/21.
//  Copyright © 2016年 Demo. All rights reserved.
//

#import "GetTimerListApi.h"

@implementation GetTimerListApi


{
    NSDictionary *_parameter;
}
-(id)initWithPar:(NSDictionary *)parameter
{
    self=[super init];
    if(self)
    {
        _parameter=parameter;
        
    }
    return self;
}
-(YTKRequestMethod)requestMethod
{
    return YTKRequestMethodPOST;
}

-(NSString *)requestUrl
{
    return @"/new/timer/get_list";
}
-(id)requestArgument
{
    
    NSMutableDictionary *mdic=[NSMutableDictionary getPubdic];
    if (_parameter[@"device_mac"]) {
        [mdic setObject:_parameter[@"device_mac"] forKey:@"device_mac"];
    }
        NSString *sign= [NSString getSign:mdic];
   
    [mdic setObject:sign forKey:@"sign"];
    return mdic;
}
-(void)dealloc
{
    NSLog(@"%@ dealloc",NSStringFromClass([self class]));
}
@end
